package com.steven.treatment_case.utils;

import android.app.Application;

import com.videogo.openapi.EZOpenSDK;

public class EZOManager {
    private static EZOManager ezoManager;
    private Application context;

    private EZOManager(Application context) {
        this.context = context;
    }

    public static EZOManager getInstance(Application context) {
        if (ezoManager == null) {
            synchronized (EZOManager.class) {
                ezoManager = new EZOManager(context);
            }
        }
        return ezoManager;
    }

    //初始化
    public void initEZO() {
        EZOpenSDK.showSDKLog(true);//sdk日志开关，正式发布需要去掉
        EZOpenSDK.enableP2P(false);//   设置是否支持P2P取流,详见api
        EZOpenSDK.initLib(context, "be4e5add0d514b27becce842341704bb");//APP_KEY请替换成自己申请的
    }
}
